/*
 * @Author: your name
 * @Date: 2021-07-23 21:50:38
 * @LastEditTime: 2021-07-23 21:51:31
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \hairdressing_web\src\services\fenxiao\index.js
 */
import api from '../../common/config/api-url'
import Vue from 'vue'

export default {
    liebiao: data => {
        return new Promise(resolve => {
            Vue.prototype.$u.get(api.fenxiao.liebiao, data).then(
                data => {
                    if (data) {
                        if (data.code === 0) {
                            resolve(data.data)
                        }
                    }
                },
                e => {
                    wx.showToast({
                        title: e.msg,
                        icon: 'none',
                        duration: 2000
                    })
                }
            )
        })
    },

}
